/*
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * RSUIDElement.h
 *
 *  Created on: 2010/03/03
 *      Author: Alexandre Pires ( c.alexandre.pires@gmail.com )
 */

#ifndef RSUIDELEMENT_H_
#define RSUIDELEMENT_H_

#include "RSGeneralDefs.h"
#include "RSErrors.h"
#include "RSTypes.h"

#include "RSElement.h"

namespace Realsphere {

    class RSUIDElement: public Realsphere::RSElement {
        Q_OBJECT
        Q_PROPERTY ( QString _attr_id READ Id WRITE SetId )
        public:
            RSUIDElement ( const QString& rId,
                           const QString& rTag = RS_ELEMENT_TAG );

            virtual ~RSUIDElement();

        public:
            QString                 Id () const;

        public slots:
            void                    SetId ( const QString& rId, bool rEmit = true );

        signals:
            void                    IdChanged ( const QString& rId );

        private:
            QString                 mId;
    };

}

#endif /* RSUIDELEMENT_H_ */
